<?php

namespace App\BO\Order\OrderRemarkLabel;

use App\Entities\LabelModel;
use App\ServicesNew\LabelService;

/**
 * 订单标签数据
 * Class OrderRemarkLabel
 * @package App\BO\Order\OrderRemarkLabel
 */
class OrderRemarkLabel
{

    /**
     * 评价大星维度
     */
    public static $starsTitle = [ 
        1 => '整体服务', 
        2 => '干净程度',
        3 => '上门时效',
        4 => '服务态度',
        5 => '服务礼仪'];

    /**
     * @return LabelService
     */
    private static function getLabelService()
    {
        return app(LabelService::class);
    }

    /**
     * 评价label
     * @return array
     */
    public static function getReviewLabels()
    {
        return self::getLabelService()->getLabelsByCategoryId(LabelModel::ORDER_COMMENT);
    }

    /**
     * @return array
     */
    public static function getLabels()
    {
        return self::getLabelService()->getLabelsByCategoryId(LabelModel::CATEGORY_CLEANER);
    }

    /**
     * @return array
     */
    public static function getStarsTitle()
    {
        return self::$starsTitle;
    }
}
